package com.jiazhong.basic.pack0316.thread;

public class DemoF1 implements Runnable {

    private DemoF f;

    public DemoF1(DemoF f) {
        this.f = f;
    }

    @Override
    public void run() {
        for (int i = 1; i < 21; i++) {
            f.change();
        }
    }
}

